<?php
    mysql_connect("localhost", "username", "password") or
        die("Could not connect: " . mysql_error());
    mysql_query("set names utf8");
    mysql_select_db("blog");
    date_default_timezone_set('Asia/Shanghai');
?>
